<script>
	export default {
		onLaunch: function() {
	
			uni.removeStorageSync('user');
			uni.removeStorageSync('exclude_ids');
			uni.removeStorageSync('redPackets');
			uni.setStorageSync('location', null);
			uni.setStorageSync('pageUrl', '/Home/index')
			if (uni.getStorageSync('token')) {
				this.$api.My.Detail().then(my => {
					uni.setStorageSync('user', my.data);
				});
			}

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";

	@import "@/static/style/iconfont.css";

	.Skeleton {
		background: linear-gradient(90deg, #f1f2f4 25%, #e6e6e6 37%, #f1f2f4 50%);
		background-size: 400% 100%;
		border-radius: 3px;
		animation: loading 1.5s infinite;
	}

	@keyframes loading {
		/* 骨架屏的动画 */

		0% {
			background-position: 100% 50%;
		}

		100% {
			background-position: 0 50%;
		}
	}

	.viewWidth {
		margin: auto;
		width: calc(100vw - 40rpx);
	}

	.borderBottom {
		padding-bottom: 10rpx;
		border-bottom: 1rpx solid #ddd;
	}


	view {
		font-size: 24rpx;
	}

	.popupTitle {
		padding: 20rpx 40rpx;
		display: flex;
		justify-content: space-between;
		border-bottom: 1rpx solid #ddd;
		align-items: center;
	}

	.u-modal__content {
		padding: 0 !important;
	}

	.popupBody {
		padding: 20rpx 0 0;
		height: 50vh;
	}

	input {
		background-color: transparent !important;
	}

	.inputBox {
		flex-wrap: wrap;
		padding-top: 10rpx;
		padding-bottom: 10rpx;
		padding-left: 20rpx;
		padding-right: 20rpx;
		border-radius: 8rpx;
		display: flex;
		align-items: center;
		color: #303133;
		font-size: 28rpx;
		text-align: left;
	}
	.ml20{
		margin-left: 20rpx;
	}
	
	.mr20{
		margin-right: 20rpx;
	}
	
	.mt20{
		margin-top: 20rpx;
	}
	
	.mb20{
		margin-bottom: 20rpx;
	}
	
	.ml10{
		margin-left: 10rpx;
	}
	
	.mr10{
		margin-right: 10rpx;
	}
	
	.mt10{
		margin-top: 10rpx;
	}
	
	.mb10{
		margin-bottom: 10rpx;
	}
		
	.color_bbb{
		color: #bbb;
	}
	.flex{
		display: flex;
		align-items: center;
	}
</style>